/*
 * @Author: your name
 * @Date: 2021-08-04 14:21:32
 * @LastEditTime: 2021-08-13 17:46:46
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \niushop\src\router\routes.js
 */


const routes = [
    {
      path:"/",
      component: ()=>import('@/App.vue'),
      redirect:"/home",
      children:[
      {
          path: '/home',
          name: 'Home',
          component: ()=>import('../views/Shouye'),
          redirect:"/home/shouye",
          children:[
            {
                path:"wode",
                component: ()=>import('../views/Shouye/wode'),
            },
            {
              path:"gouwuche",
              component: ()=>import('../views/Shouye/gouwuche'),
            },
            {
              path:"fenlei",
              component: ()=>import('../views/Shouye/fenlei'),
            },
            {
              path:"shouye",
              component: ()=>import('../views/Shouye/shouye'),
            },
          ]
      },
      {
        path:"/login",
        component: ()=>import('../views/Login/index'),
      },
      {
        path:"/register",
        component: ()=>import('../views/Login/register'),
      },
      {
        path:"/xiangqing",
        component: ()=>import('../views/Xiangqing'),
      },
      {
        path:"/location",
        component: ()=>import('../views/Nothing/location'),
      },
      {
        path:"/sale",
        component: ()=>import('../views/Nothing/sale'),
      },
      {
        path:"/nothing",
        component: ()=>import('../views/Nothing/nothing'),
      }
      ]
    }

   
    
  ]

export default routes